﻿<%@ Page Title="Change Password" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="ChangePass.aspx.cs" Inherits="ChangePass" %>

<%@ Register assembly="obout_Interface" namespace="Obout.Interface" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:100%;">
        <tr>
            <td colspan="3" style="vertical-align: top; text-align: center;">
                <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Large" 
                    Text="THAY ĐỔI MẬT KHẨU"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="vertical-align: top; text-align: right; width: 40%">
                <asp:Label ID="Label1" runat="server" Text="Mật khẩu hiện tại:"></asp:Label>
            </td>
            <td style="text-align: left; vertical-align: top">
                <asp:TextBox ID="txtCurPass" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
            </td>
            <td style="text-align: left; vertical-align: top; width: 30%">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                    ControlToValidate="txtCurPass" CssClass="notification" 
                    ErrorMessage="Chưa nhập mật khẩu hiện tại" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formPass"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="vertical-align: top; text-align: right; width: 40%">
                <asp:Label ID="Label3" runat="server" Text="Mật khẩu mới:"></asp:Label>
            </td>
            <td style="text-align: left; vertical-align: top">
                <asp:TextBox ID="txtNewPass" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
            </td>
            <td style="text-align: left; vertical-align: top; width: 30%">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                    ControlToValidate="txtNewPass" CssClass="notification" 
                    ErrorMessage="Chưa nhập mật khẩu mới" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formPass"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="vertical-align: top; text-align: right; width: 40%">
                <asp:Label ID="Label4" runat="server" Text="Nhập lại mật khẩu mới:"></asp:Label>
            </td>
            <td style="text-align: left; vertical-align: top">
                <asp:TextBox ID="txtConfirmPass" runat="server" TextMode="Password" 
                    Width="200px"></asp:TextBox>
            </td>
            <td style="text-align: left; vertical-align: top; width: 30%">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" 
                    ControlToValidate="txtConfirmPass" CssClass="notification" 
                    ErrorMessage="Chưa nhập xác nhận mật khẩu" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formPass"></asp:RequiredFieldValidator><br />
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ErrorMessage="Mật khẩu không trùng khớp" ControlToCompare="txtNewPass" 
                    ControlToValidate="txtConfirmPass" Font-Bold="True" ForeColor="Red" 
                    ToolTip="Mật khẩu không trùng khớp" CssClass="notification" ValidationGroup="formPass"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td style="vertical-align: top; text-align: right; width: 40%">
                &nbsp;</td>
            <td style="text-align: left; vertical-align: top">
                <asp:Button ID="btnSubmit" CssClass=button runat="server" Text="Cập nhật" 
                    ValidationGroup="formPass" onclick="btnSubmit_Click" />&nbsp
                </td>
            <td style="text-align: left; vertical-align: top; width: 30%">
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

